using fit;

namespace TestUtils
{
	public abstract class KeyedDefinitionFixture : DefinitionFixture
	{
		protected string dynamicKey;

		public override void doRows(Parse rows)
		{
			Parse parts = rows.parts;
			dynamicKey = parts.text();
			base.doRows(rows.more);
		}

		protected override string GetDefinitonName()
		{
			return string.Format("{0}:{1}", base.GetDefinitonName(), dynamicKey);
		}
	}
}